<template>
  <div >
    <!--      标题-->
    <div class="title">扫码统计</div>
    <tjcom :show-close="true" ref="tjcomRef" />
  </div>
</template>
<script>
// 扫码统计
import tjcom from "@/views/deliver/pc/tjcom.vue";
import bus from "@/store/bus";
export default {
  name: 'stj',
  components: {  tjcom},
  data () {
    return {

    }
  },
  created () {
    bus.$on('scan-ret', this.scanPs)
  },
  unmounted () {
    bus.$off('scan-ret', this.scanPs)
  },
  methods: {
    scanPs ({code}) {
      this.$refs.tjcomRef.scanPs({code})
    },
  }
}
</script>
<style scoped lang="scss">
.title {
  text-align: center;
  font-weight: bold;
  font-size: 22px;
  background-color: #01aaee;
  color: white;
  height: 40px;
  line-height: 40px;
}
</style>